export const state = {
	noticeText: '小程序上线通知',
	banners: [
		{
			type: '1',
			img: require('@/static/banner/banner1.jpg'),
			url: 'http://www.twinedu.com/'
		},
		{
			type: '1',
			img: require('@/static/banner/banner1.jpg'),
			url: 'http://www.twinedu.com/'
		},
		{
			type: '2',
			img: require('@/static/banner/banner1.jpg'),
			url: '/subpages/home/template'
		}
	],
	smallBanners:[
		{
			type: '2',
			img: require('@/static/banner/banner-jl2.jpg'),
			url: '/subpages/home/template'
		}
	],
	menus: [
		{ judgeIsLogin: true,label: '在线报名', icon: require('@/static/icon/menu/big-01.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: '动态资讯', icon: require('@/static/icon/menu/big-02.png'), path: '/subpages/home/consult' },
		{ judgeIsLogin: false,label: '关于拓为', icon: require('@/static/icon/menu/big-03.png'), path: 'http://www.twinedu.com/' }
	],
	smallMenus: [
		{ judgeIsLogin: false,label: '精品全班课', icon: require('@/static/icon/menu/mianshou/1.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: 'VIP集训班', icon: require('@/static/icon/menu/mianshou/2.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: 'VIP协议班', icon: require('@/static/icon/menu/mianshou/2.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: '高端集训班', icon: require('@/static/icon/menu/mianshou/3.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: '高端协议班', icon: require('@/static/icon/menu/mianshou/3.png'), path: '/subpages/home/onlineRegist' },
		{ judgeIsLogin: false,label: '全部班型', icon: require('@/static/icon/menu/mianshou/4.png'), path: '/subpages/home/onlineRegist' },
	]
};
export const mutations = {
	// 修改 公告栏 数据
	setNoticeText(state, data) {
		if(!data) return
		state.noticeText = data;
	},
	// 修改 banners 数据
	setBanners(state,data){
		if(!data) return
		state.banners = data
	}
};
export const actions = {

};
